package com.example.graduation.service.impl;

import com.example.graduation.dao.InterviewInvitationMapper;
import com.example.graduation.entity.InterviewInvitation;
import com.example.graduation.service.InterviewInvitationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InterviewInvitationServiceImpl implements InterviewInvitationService {
    @Autowired
    private InterviewInvitationMapper interviewInvitationMapper;

    @Override
    public List<InterviewInvitation> findAll() {
        return interviewInvitationMapper.findAll();
    }

    @Override
    public InterviewInvitation findById(Integer id) {
        return interviewInvitationMapper.findById(id);
    }

    @Override
    public List<InterviewInvitation> findByJobSeekerId(Integer jobSeekerId) {
        return interviewInvitationMapper.findByJobSeekerId(jobSeekerId);
    }

    @Override
    public List<InterviewInvitation> findByCompanyJobId(Integer companyJobId) {
        return interviewInvitationMapper.findByCompanyJobId(companyJobId);
    }

    @Override
    public int insert(InterviewInvitation interviewInvitation) {
        return interviewInvitationMapper.insert(interviewInvitation);
    }

    @Override
    public int update(InterviewInvitation interviewInvitation) {
        return interviewInvitationMapper.update(interviewInvitation);
    }

    @Override
    public int deleteById(Integer id) {
        return interviewInvitationMapper.deleteById(id);
    }
} 